Component({
  properties: {
    points: Object,
    name: String,
    addr: String
  },
  data: {},
  methods: {
    openmap () {
      let { latitude, longitude} = this.properties.points
      wx.openLocation({
        latitude,
        longitude,
        name: this.properties.name,
        address: this.properties.addr
      })
    }
  }
})
